import request from '@/utils/request'

// 查询挂号记录列表
export function listDept(query) {
  return request({
    url: '/registrations/dept/list',
    method: 'get',
    params: query
  })
}

// 查询挂号记录详细
export function getDept(registrationId) {
  return request({
    url: '/registrations/dept/' + registrationId,
    method: 'get'
  })
}

// 新增挂号记录
export function addDept(data) {
  return request({
    url: '/registrations/dept',
    method: 'post',
    data: data
  })
}

// 修改挂号记录
export function updateDept(data) {
  return request({
    url: '/registrations/dept',
    method: 'put',
    data: data
  })
}

// 删除挂号记录
export function delDept(registrationId) {
  return request({
    url: '/registrations/dept/' + registrationId,
    method: 'delete'
  })
}
